package com.xbongbong.paas.constant;

/**
 * 时间常量
 * @author kaka
 * @time 2018-9-5 18:58
 */
public class TimeConstant {

    /**
     *  一天的小时数
     */
    public static final int HOURS_PER_DAY = 24;
    /**
     *  一月的天数
     */
    public static final Integer MONTH = 30;
    /**
     *  一月的天数
     */
    public static final Integer REAL_MONTH = 31;
    /**
     *  闰年的天数
     */
    public static final Integer LEAP_YEAR = 366;
    /**
     * 一周的（7天）小时数
     */
    public static final int HOURS_PER_WEEK = 7 * HOURS_PER_DAY;
    /**
     * 每天的秒数
     */
    public static final int SECONDS_PER_DAY = 86400;
    /**
     * 2天的秒数
     */
    public static final int SECONDS_TWO_DAY = 2 * SECONDS_PER_DAY;

    /**
     * 3天的秒数
     */
    public static final int SECONDS_THREE_DAY = 3 * SECONDS_PER_DAY;

    /**
     * 每小时秒数
     */
    public static final int SECONDS_PER_HOUR = 3600;

    /**
     * 2小时秒数
     */
    public static final int SECONDS_TWO_HOURS = 2 * SECONDS_PER_HOUR;

    /**
     * 每分钟秒数
     */
    public static final int SECONDS_PER_MINUTE = 60;

    /**
     * 筛选项redis存活一天
     */
    public static final int SEARCH_EFFECTIVE_TIME = 24 * 60 * 60;

    /**
     * 每月的秒数
     */
    public static final int SECONDS_PER_MONTH = 30 * SECONDS_PER_DAY;

    /**
     * 半月的秒数
     */
    public static final int SECONDS_PER_HALF_MONTH = 15 * SECONDS_PER_DAY;

    /**
     * 三个月的秒数
     */
    public static final int SECONDS_THREE_MONTH = 3 * SECONDS_PER_MONTH;

    /**
     * 六个月秒数
     */
    public static final int SECONDS_SIX_MONTH = 6 * SECONDS_PER_MONTH;

    /**
     * 365天一年秒数
     */
    public static final int SECONDS_PER_YEAR = 365 * SECONDS_PER_DAY;


    /**
     * 每周的秒数
     */
    public static final int SECONDS_PER_WEEK = 7 * SECONDS_PER_DAY;

    /**
     * 5分钟的秒数
     */
    public static final int TINY_DURATION = 5 * SECONDS_PER_MINUTE;
    /**
     * 10分钟的秒数
     */
    public static final int TEN_MINUTE_DURATION = 10 * SECONDS_PER_MINUTE;
    /**
     * 15分钟的秒数
     */
    public static final int QUARTER_DURATION = 15 * SECONDS_PER_MINUTE;
    /**
     * 30分钟的秒数
     */
    public static final int SECONDS_HALF_HOUR = 30 * SECONDS_PER_MINUTE;
    /**
     * 45分钟的秒数
     */
    public static final int SECONDS_FORTY_FIVE_MINUTE = 45 * SECONDS_PER_MINUTE;
    /**
     * 2小时的秒数
     */
    public static final int SECONDS_TWO_HOUR = 2 * SECONDS_PER_HOUR;
    /**
     * 8小时的秒数
     */
    public static final int SECONDS_EIGHT_HOUR = 8 * SECONDS_PER_HOUR;
    /**
     * 时间余量2000秒
     */
    public static final int SECONDS_ALLOWANCE = 2000;
    /**
     * 0秒，某些默认值会设置成0
     */
    public static final int ZERO = 0;
    /**
     * 366天的一年秒数
     */
    public static final int SECONDS_PER_LONG_YEAR = 366 * SECONDS_PER_DAY;
}
